package com.example.imterface.util;

import com.example.imterface.vo.ResultVO;

/**
 * @Author: banban
 * @Desctription: TODO
 * @Date: Created in 2023/12/8 16:31
 * @Version: 1.0
 */
public class ResultVOUtil {
    public static ResultVO success(){
        return new ResultVO<>(200,"操作成功");
    }
    public static ResultVO success(Object data){
        return new ResultVO<>(200,"操作成功",data);
    }
    public static ResultVO error(Integer code,String msg){
        return new ResultVO<>(code,msg);
    }
}
